package com.es.www.transaction;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

import com.es.www.transaction.service.FinanceService;

/**
 * @Created by michangtao
 * @Date 2022/2/9 15:57
 * @Description
 */
@Configuration
@ComponentScan("com.es.www.transaction")
@EnableAspectJAutoProxy
public class TransactionApplication {


    public static void main(String[] args) {
        AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext(TransactionApplication.class);
        FinanceService financeService = ctx.getBean(FinanceService.class);
        financeService.transfer(1L,2L,20);
    }
}
